package com.zcoj.api.exception;

/**
 * @description:  异常处理枚举类
 * @author: chen.bin
 * @version: 1.0.0
 * @date 2023/2/24 15:11
 **/
public enum ExceptionEnum {
    
    // 数据操作错误定义
    USERNAME_PASSWORD_ERROR("1000", "用户名或密码错误!"),
    BODY_NOT_MATCH("1001","请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("1002","数字签名失效!"),
    NOT_FOUND("1003", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("1004", "服务器内部错误!"),
    SERVER_BUSY("1005","服务器正忙，请稍后再试!"),
    LOGIN_EXPIRE("1006","登陆过期");

    /**
     * 错误码
     */
    private final String resultCode;

    /**
     * 错误描述
     */
    private final String resultMsg;

    ExceptionEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }


    public String getResultCode() {
        return resultCode;
    }


    public String getResultMsg() {
        return resultMsg;
    }
}
